package com.wgy.blog.controller;

import com.github.pagehelper.PageInfo;
import com.wgy.blog.common.Result;
import com.wgy.blog.pojo.Article;
import com.wgy.blog.service.ArticleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author:Iny
 * @Data：2021/11/19 23:21
 */
@RestController
@RequestMapping("article")
public class ArticleController {
    @Resource
    private ArticleService articleService;

    @GetMapping("findAll")
    public Result findAll(PageInfo pageInfo){
        return articleService.findAll(pageInfo);
    }
}
